package com.foreknow.demo4;

public class MethodDemo1 {

    public int m1(int a){
        int a1 = 1;
        return a1;
    }

    public int[] m2(int[] b){
        return b;
    }

    /**
     * 根据学生的学号查询某个学生的信息 select *  from student where id=?
     *
     */
     public Student queryById(int sid){

         return null;
     }

    public static void main(String[] args) {
        MethodDemo1 a = new MethodDemo1();
        int b = a.m1(1);
        System.out.println(b);

        int[] aa = {1,2,3};
        int[] k = a.m2(aa);
        for(int i = 0;i<k.length;i++) {
            System.out.println(k[i]);
        }
        int d=1001;
        Student d1=a.queryById(1);
        d1.showInfo();


    }

}

